package com.weseal.exception;

/**
 * @author weseal
 * @title
 * @description
 * @usage
 * @copyright Copyright 2014  rrmj Corporation. All rights reserved.
 * @company 上海众多美网络科技有限公司
 * @create 2017/9/10
 */
public class MasterException extends BaseException {

	/**
	 * 角色异常前缀
	 */
	private final static String PRE_EXCEPTION = "17";
	public static MasterException MASTER_NOT_FIND_EXCEPTION = new MasterException("01", "用户不存在");
	public static MasterException MASTER_LOCKED_EXCEPTION = new MasterException("02", "用户已锁定");
	public static MasterException MASTER_VALID_EXCEPTION = new MasterException("03", "用户名或密码不正确");
	public static MasterException MASTER_PASSWORD_FAULT = new MasterException("03", "密码不正确");
	public static MasterException MASTER_INFO_BLANK = new MasterException("04", "用户信息丢失");
	public static MasterException MASTER_NAME_BLANK = new MasterException("05", "用户名或者登录名为空");
	public static MasterException MASTER_SESSION_OVERDUE = new MasterException("06", "用户过期请重新登录");

	
	
	public MasterException(String code, String message) {
		super(PRE_EXCEPTION + code, message);
	}
}
